package com.easygem.common.model.front;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @author 肖智
 * @version 1.0
 * @Description 资源来源实体类
 * @date 2024/12/26
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("资源来源")
@Table(name = "`source`")
public class Source {

    @Id
    @Column(name = "`sourceId`")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty("来源ID")
    private Integer sourceId;

    @Column(name = "`options`")
    @ApiModelProperty("选项内容")
    private String options;

    @Column(name = "`sort`")
    @ApiModelProperty("排序")
    private Integer sort;

    @Column(name = "`enable`")
    @ApiModelProperty("是否采用")
    private Integer enable;

    @Column(name = "`createTime`")
    @ApiModelProperty("创建时间")
    private String createTime;

    @Column(name = "`accountName`")
    @ApiModelProperty("账户名称")
    private String accountName;
}
